import request from '@/utils/request'

// 相关方列表
export const relatedPageList = (params) => {
  return request({
    method: 'get',
    url: '/system/relative/list',
    params: params,
  })
}
// 新增相关方
export const relatedAdd = (params) => {
  return request({
    method: 'post',
    url: '/system/relative/add',
    data: params,
  })
}
// 更新相关方
export const relatedUpdate = (params) => {
  return request({
    method: 'put',
    url: `/system/relative/update`,
    data: params,
  })
}
// 删除相关方
export const relatedDelete = (params) => {
  return request({
    method: 'delete',
    url: '/system/relative/delete',
    params: params,
  })
}
// 相关方详情
export const relatedDetail = (params) => {
  return request({
    method: 'get',
    url: '/system/relative/get',
    params: params,
  })
}
